import request from '@/utils/request'

// 查询采集非增值税发票列表
export function listCollectnoninvoice(query) {
  return request({
    url: '/doc/collectnoninvoice/list',
    method: 'get',
    params: query
  })
}

// 查询采集非增值税发票详细
export function getCollectnoninvoice(id) {
  return request({
    url: '/doc/collectnoninvoice/' + id,
    method: 'get'
  })
}

// 新增采集非增值税发票
export function addCollectnoninvoice(data) {
  return request({
    url: '/doc/collectnoninvoice',
    method: 'post',
    data: data
  })
}

// 修改采集非增值税发票
export function updateCollectnoninvoice(data) {
  return request({
    url: '/doc/collectnoninvoice',
    method: 'put',
    data: data
  })
}

// 删除采集非增值税发票
export function delCollectnoninvoice(id) {
  return request({
    url: '/doc/collectnoninvoice/' + id,
    method: 'delete'
  })
}
